package com.ctsi.oauth.properties;

import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @Auther: zhangjw
 * @Date: 2018/7/1 13:33
 * @Description: 验证码配置
 */
public class ValidateCodeProperties {

    /**
     * 图片验证码配置
     */
    @NestedConfigurationProperty
    private ImageCodeProperties image = new ImageCodeProperties();
    /**
     * 短信验证码配置
     */
    @NestedConfigurationProperty
    private SmsCodeProperties sms = new SmsCodeProperties();
    /**
     * 邮箱验证码配置
     */
    @NestedConfigurationProperty
    private EmailCodeProperties email = new EmailCodeProperties();

    public ImageCodeProperties getImage() {
        return image;
    }

    public void setImage(ImageCodeProperties image) {
        this.image = image;
    }

    public SmsCodeProperties getSms() {
        return sms;
    }

    public void setSms(SmsCodeProperties sms) {
        this.sms = sms;
    }

    public EmailCodeProperties getEmail() {
        return email;
    }

    public void setEmail(EmailCodeProperties email) {
        this.email = email;
    }

    public ValidateCodeProperties() {

    }
}
